import { paramsKey } from './../../../utils/type'
import request from '@/utils/request'

// 获取企业线索表单
export const getClueApplyCorpForm = (data?: any) => {
  return request({
    url: '/scrm-api/console/clue/apply-corp-form',
    method: 'POST',
    data
  })
}
// 公海列表
export const getClueList = (data: any) => {
  return request({
    url: '/scrm-api/console/clue/seas/list',
    method: 'POST',
    data
  })
}
// 获取线索等级列表
export const getClueLevelList = (data: any) => {
  return request({
    url: '/scrm-api/console/clue/level/list',
    data
  })
}
// 获取线索来源
export const getClubSourceList = (params?: any) => {
  return request({
    url: '/scrm-api/console/clue/source/list',
    params
  })
}
//  添加企业线索
export const clueCompanyCreate = (data: any) => {
  return request({
    url: '/scrm-api/console/clue/company-creat',
    method: 'POST',
    data
  })
}
//  获取企业线索详情
export const getClueCompanyInfo = (data: any) => {
  return request({
    url: '/scrm-api/console/clue/company-info',
    method: 'POST',
    data
  })
}
//  编辑企业线索
export const clueCompanyEdit = (data: any) => {
  return request({
    url: '/scrm-api/console/clue/company-update',
    method: 'POST',
    data
  })
}
